import Vue from 'vue'
import App from './App.vue'
//axios
import axios from 'axios'
Vue.prototype.$axios = axios
import fyq from '../src/components/fyq.vue'
Vue.component("fyq",fyq)
//把router注入到vue里
// import vuerouter from 'vue-router';
import router from './components/router'
// Vue.use(router);
// 是指路由重复。
// const originalPush = router.prototype.push;
// 修改 原型对象中的push方法
// router.prototype.push = function push(location) {
//     return originalPush.call(this, location).catch(err => err)
// };
//引用router
Vue.config.productionTip = false
//引用store
import store from '../src/JS/stroe';
//element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
